package org.dromara.business.domain.bo;

import org.dromara.business.domain.Answer;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 客服问答业务对象 answer
 *
 * @author zlj
 * @date 2024-08-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Answer.class, reverseConvertGenerate = false)
public class AnswerBo extends BaseEntity {

    /**
     * 问题答案id
     */
    @NotNull(message = "问题答案id不能为空", groups = { EditGroup.class })
    private Long answerId;

    /**
     * 问题模版关键词(例如: "发货时间,发货快递"), 多个关键词逗号相隔
     */
    @NotBlank(message = "问题模版关键词(例如: '发货时间,发货快递'), 多个关键词逗号相隔不能为空", groups = { AddGroup.class, EditGroup.class })
    private String answerKeyWord;

    /**
     * 问题答案内容
     */
    @NotBlank(message = "问题答案内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String answerTemplates;


}
